{extend name='public/form'/}
<!-- 表单字段 -->
{block name='fields'}
{:token_field()}
<div class="layui-form-item">
    <label class="layui-form-label">菜单名称</label>
    <div class="layui-input-block">
        <input type="text" name="title" value="" required lay-verify="required" placeholder="请输入菜单名称" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">父级菜单</label>
    <div class="layui-input-inline">
        <select name="pid" lay-search="">
            {foreach $selectTree as $key => $vo}
            <option value="{$key}" {$key==$default ? " selected" :""}>{$vo|raw}</option>
            {/foreach}
        </select>
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">控制器</label>
    <div class="layui-input-block">
        <input type="text" name="controller" value="" required lay-verify="required" placeholder="请输入控制器" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">方法</label>
    <div class="layui-input-block">
        <input type="text" name="action" value="" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">排序</label>
    <div class="layui-input-inline">
        <input type="number" name="ord" value="0" required lay-verify="required|number" autocomplete="off"
            class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">图标</label>
    <div class="layui-input-block">
        <input type="text" name="icon" value="" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-block">
        <input type="hidden" name="ishidden" value="0">
        <input type="hidden" name="status" value="0">
        <input type="checkbox" name="ishidden" value="1" title="隐藏" lay-skin="primary">
        <input type="checkbox" name="status" value="1" title="禁用" lay-skin="primary">
    </div>
</div>
{/block}